﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Model;

namespace TestPMS
{
    [TestClass]
    public class TestPMS_UserBLL
    {
        BLL.PMS_UserBLL bll = new BLL.PMS_UserBLL();
        [TestMethod]
        public void Exite()
        {
            Assert.IsNotNull(bll);
            Assert.AreEqual(true, bll.Exite("tianyin"));
        }

        [TestMethod]
        public void AddUpdate()
        {
            PMS_User model = new PMS_User();
            model.id = 0;
            model.roleID = 0;
            model.loginName = "tianyin1";
            model.loginPassword = "123456";
            model.role = "管理员";
            Assert.IsNotNull(bll);
            Assert.AreEqual(false, bll.AddUpdate(model));
        }
    }
}
